


package com.gxa.p2p.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author xiangzuo
 * 活动
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("活动实体类")
public class Activity implements Serializable {
  @ApiModelProperty(name = "id",value = "id")
  private Long id;
  @ApiModelProperty(name = "event",value = "触发事件")
  private String event;
  @ApiModelProperty(name = "rewPeople",value = "奖励对象")
  private String rewPeople;
  @ApiModelProperty(name = "redpacDetail",value = "奖励红包")
  private String redpacDetail;
  @ApiModelProperty(name = "type",value = "奖励方式")
  private String type;
  @ApiModelProperty(name = "sentNum",value = "已送份数")
  private Integer sentNum;
  @ApiModelProperty(name = "state",value = "状态(0表示关闭，1表示开启)")
  private Boolean state;
  @ApiModelProperty(name = "updateTime",value = "更新时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  private Date updateTime;
  @ApiModelProperty(name = "name",value = "策略名称")
  private String name;
  @ApiModelProperty(name = "method",value = "赠送方式")
  private String method;
  //活动来源
  @ApiModelProperty(name = "origin",value = "活动来源")
  private String origin;
}
